package com.xiechur.entity;

import java.util.*;

/**
 * Created by dell on 2016/3/25.
 */
public class People {
    private int id;
    private String name;
    private int age;
    private Dog dog = new Dog();
    private String className;
//    private List<String> hobbies=new ArrayList<String>();
//    private Set<String> loves=new HashSet<String>();
//    private Map<String,String> works=new HashMap<String,String>();


    public People() {
        super();
    }

    public People(Dog dog) {
        super();
        this.dog = dog;
        System.out.println("constructor");
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return "People{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", dog=" + dog.getName() +
                ", className='" + className + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Dog getDog() {
        return dog;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }
}
